feat: enhance multi-container deployment support#46
Open
GuoJangWang wants to merge 2 commits intomatth-x:mainfrom
Open
feat: enhance multi-container deployment support#46GuoJangWang wants to merge 2 commits intomatth-x:mainfrom
GuoJangWang wants to merge 2 commits intomatth-x:mainfrom
Conversation
This commit adds support for running multiple MicroOCPPSimulator instances on the same host with runtime configuration capabilities: ## Key Features ### Runtime API Configuration - Added entrypoint script for dynamic API_ROOT configuration at container startup - Frontend now supports window.API_ROOT for runtime API endpoint configuration - Maintains backward compatibility with existing environment variable approach ### Environment-based Charger Configuration - Added CHARGER_ID and CHARGER_KEY environment variable support - Allows different charging station identities for multi-container scenarios - Falls back to default values for single-instance compatibility - Added runtime logging for configuration debugging ### Container Enhancements - Modified Dockerfile to support runtime configuration through entrypoint script - Improved container structure for multi-instance deployment - Enhanced deployment flexibility while preserving existing functionality ## Benefits - Enables easy testing of multiple charging station simulators - Supports scalability testing with multiple concurrent instances - Maintains full backward compatibility with existing deployments - Facilitates complex OCPP network simulation scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Author
|
Please review and approve or give me some feedback. |
Contributor
|
Hey @GuoJangWang I think you meant to flag someone else... |
Author
Oh! I notice now |
Author
|
I just submit a PR to micro-ocpp-dashboard for this update please review I've already use this updated img in my server to host multi virtual EVSE at the same time. thanks a lot |
- Remove .env.production dependency check - Add proper directory creation logic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds support for running multiple MicroOCPPSimulator instances on the same host with runtime configuration capabilities:
Key Features
Runtime API Configuration
Environment-based Charger Configuration
Container Enhancements
Benefits